import request from '@/utils/request'

const path = '/basic/equipment/use'
// 使用记录列表
export function queryPageList(data) {
  return request({
    url: path+'/queryPageList',
    method: 'post',
    data,
  })
}
//修改状态
export function updateState(data) {
  return request({
    url: path+'/updateState',
    method: 'post',
    data,
  })
}
//删除单条使用记录
export function delRecordById(id) {
  return request({
    url: path+`/delRecordById/${id}`,
    method: 'get',
  })
}

//打印使用记录
export function generateUseRecords(data) {
  return request({
    url: path+'/generateUseRecords',
    method: 'post',
    data,
  })
}
